package com.applet.mapper;

import com.applet.model.LockBindingInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface LockBindingInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(LockBindingInfo record);

    int insertSelective(LockBindingInfo record);

    LockBindingInfo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(LockBindingInfo record);

    int updateByPrimaryKey(LockBindingInfo record);

    List<LockBindingInfo> getLockBingdingInfos(@Param("userId")String userId,@Param("currPage")Integer currPage,
                                               @Param("pageSize")Integer pageSize);

    LockBindingInfo selectByLockId(@Param("lockId")String lockId);

    LockBindingInfo selectByUserIdAndLockId(@Param("userId")String userId,@Param("lockId")String lockId);

    int getCountByUserId(@Param("userId")String userId);
}